package com.poh.mapper;

import com.poh.pojo.ChoiceQuestion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ChoiceQuestionMapper {
    int addChoiceQuestion(ChoiceQuestion choiceQuestion);
    List<ChoiceQuestion> getChoiceQuestionByQuestionBankId(@Param("questionBankId") String questionBankId);
    int delectChoiceQuestionByCqId(@Param("cqId") int cqId);
    int updateChoiceQuestionById(ChoiceQuestion choiceQuestion);
    ChoiceQuestion queryChoiceQuestionById(@Param("cqId") int cqId);
}
